<div ng-include src="'tpl/public/header.html'"></div> 
<div class="contents">
  <!--
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/simu/list">基金列表</a></li>
    <li><a href="#/simu/view?id={{jj.id}}">{{jj.jjmc}}</a></li>
    <li class="active">历史净值</li>
  </ol>
-->
<div class="row">
  <div class="col-xs-7">
    <table class="table table-striped table-hover ">
      <thead>
        <tr>
          <th width="120">净值日期</th>
          <th width="120">最新净值</th>
          <!--<th width="120">单位净值</th>-->
          <th width="120">累计净值</th>
          <th width="120">涨跌幅</th>
          <th width="120">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="row in list" ng-click="edit($index)">
          <td>{{row.jzrq}}</td>
          <td>{{row.jzdw}}</td>
          <td>{{row.ljjz}}</td>
          <td>{{row.zdf}}</td>
          <td class="optd">
            <a class="cur-p" ng-click="edit($index)"   has-auth where="btn" who="PRODUCT_EDIT" owner="{{item.createBy}}">编辑</a>
            <a class="cur-p" ng-click="deleteItem($index)"   has-auth where="btn" who="PRODUCT_DELETE" owner="{{item.createBy}}">删除</a>
          </td>
        </tr>
      </tbody>
    </table>
  </div>

  <form class="form-horizontal col-xs-5" role="form" name="form" ng-submit="save()" novalidate > 
    <div class="form-group">
      <label for="advertTitleInput" class="col-sm-2 control-label">基金简称</label>
      <div class="col-sm-5 form-control-text">{{jj.jjmc}}</div>
    </div> 
    <div class="form-group" ng-class="{'has-error':form.jzrq.$invalid}">
      <label class="col-sm-2 control-label">净值日期</label>
      <div class="col-sm-5">
        <input type="date" class="form-control" placeholder="净值日期" name="jzrq" ng-model="item.jzrq">
      </div>
    </div> 
    <!--
    <div class="form-group" ng-class="{'has-error':form.jzdw.$invalid }">
      <label for="advertLinkInput" class="col-sm-2 control-label">单位净值</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" id="advertLinkInput" placeholder="单位净值" name="jzdw" ng-model="item.jzdw">
      </div>
    </div>
    -->
    <div class="form-group" ng-class="{'has-error':form.jzdw.$invalid }">
      <label for="advertLinkInput" class="col-sm-2 control-label">最新净值</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" id="advertLinkInput" placeholder="最新净值" name="jzdw" ng-model="item.jzdw">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.ljjz.$invalid}">
      <label class="col-sm-2 control-label">累计净值</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="累计净值" name="ljjz" ng-model="item.ljjz">
      </div>
    </div> 
    <div class="form-group" ng-class="{'has-error':form.zdf.$invalid}">
      <label class="col-sm-2 control-label">跌涨幅</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="跌涨幅" name="zdf" ng-model="item.zdf">
      </div>
    </div> 
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default"  has-auth where="btn" who="PRODUCT_EDIT" owner="{{item.createBy}}">提交</button>
      </div>
    </div>
  </form>
</div>

<div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="ads.length > 0"></div>
</div>

